﻿using System.Collections;
using System.Collections.Generic;
using GameFramework;
using UnityEngine;

namespace Client {
    public class AssetUtility
    {
        /// <summary>
        /// 获取DataTable资源路径
        /// </summary>
        /// <param name="assetName"></param>
        /// <param name="formBytes"></param>
        /// <returns></returns>
        public static string GetDataTableAsset(string assetName, bool formBytes) {
            return Utility.Text.Format("Assets/GameMain/_Client/DataTables/{0}.{1}", assetName,
                formBytes ? "bytes" : "txt");
        }
        /// <summary>
        /// 获取UI文件
        /// </summary>
        /// <param name="assetName"></param>
        /// <returns></returns>
        public static string GetUIFormAsst(string assetName) {
            return Utility.Text.Format("Assets/GameMain/_Menu/UIForm/{0}.prefab",assetName);
        }
    }
}
